LOGGING = {
    'disable_existing_loggers': False,
    'version': 1,
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
            'level': 'DEBUG'  # message level to be written to console
        },
        'custom': {
            'class': 'logging.StreamHandler',
            'formatter': 'verbose'
        },
    },
    'formatters': {
        'verbose': {
            '()': "colorlog.ColoredFormatter",
            # black, red, green, yellow, blue, purple, cyan and white
            'format': '%(log_color)s%(levelname)s %(asctime)s %(name)s.%(filename)s %(lineno)d %(process)d %(thread)d %(message_log_color)s%(message)s',
            "reset": True,
            "log_colors": {
                'DEBUG': 'cyan',
                'INFO': 'green',
                'WARNING': 'yellow',
                'ERROR': 'red',
                'CRITICAL': 'red,bg_white',
            },
            "secondary_log_colors": {
                'message': {
                    'DEBUG': 'green',
                    'INFO': 'green',
                    'WARING': 'green',
                    'ERROR': 'red',
                    'CRITICAL': 'red'
                }
            }
        }
    },
    'loggers': {
        'django.db.backends': {
            'level': 'DEBUG',
            'handlers': ['console'],
        },
        'nplusone': {
            'level': 'DEBUG',
            'handlers': ['custom']
        },
        'social.account': {
            'level': "DEBUG",
            'handlers': ['custom']
        },
        'social.utils': {
            'level': "DEBUG",
            'handlers': ['custom']
        },
        'social.search': {
            'level': "DEBUG",
            'handlers': ['custom']
        },
        'social.user': {
            'level': "DEBUG",
            'handlers': ['custom']
        },
        'social.thirdeye': {
            'level': 'DEBUG',
            'handlers': ['custom']
        },
        'social.im': {
            'level': "DEBUG",
            'handlers': ['custom']
        },
        "errors": {
            'level': "DEBUG",
            "handlers": ['custom']
        }
    },
}

"""=================================此处导入配置================================="""
env = "debug"
DEBUG = False
SECRET_KEY = '$8b^g0v^l4olftiv=mpin=a59%%!681(8w@!y$_3!4)n##e8lz'

MYSQL_HOST = "47.115.227.228"
MYSQL_PORT = "3306"
MYSQL_DB = "xiuyu"
MYSQL_USER = "root"
MYSQL_PWD = "zhangle@2023"

API_HOST = "http://api.memeapp.com.cn:9001/api/"
IMAGE_HOST = "http://file.zhangleapp.com/"
VIDEO_HOST = "http://file.zhangleapp.com/"

OSS_ACCESS_KEY_ID = "LTAI5tMiQakZcGobEWDH7VsJ"
OSS_ACCESS_KEY_SECRET = "Qq4FWQJS0cbi98hdjVmwxnc6d4dWYx"
OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com"
OSS_INTERNAL_ENDPOINT = "oss-cn-beijing.aliyuncs.com"

ZEGO_APP_ID = 815211219
ZEGO_APP_SECRET = "0509a4656339ff01cca6a68d1259f975"

OSS_REGION_ID = "cn-hangzhou"
OSS_BUCKET_NAME = "xiuyu-app"
STS_ROLEARN = "acs:ram::1126378697674434:role/zhangle"


# celery
CELERY_BROKER_URL = "redis://:000415@47.115.227.228:6379/14"
CELERY_RESULT_BACKEND = "redis://:000415@47.115.227.228:6379/14"

# redis
CACHE_DEFAULT_REDIS_URL = "redis://:000415@47.115.227.228:6379/15"
CACHE_RDM_REDIS_URL = "redis://:000415@47.115.227.228:6379/15"

# sentry
SENTRY_URL = ''

ELASTICSEARCH_PWD = "zhangle@2023"
ELASTICSEARCH_USER = "elastic"
ELASTICSEARCH_HOST = "47.115.227.228:9200"

SYSTEM_ADMINS = (
)

APPLE_SECRET = "5df7ea97df7a4b6aa21442ec218c9409"

ALIPAY = {
    "APP_ID": "2019051064489063",
    "PRIVATE_KEY": "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCCcGEngktP1K0NKcnWELulGdUeZuMvprf0v/pp7tq+f9Tg+kJCn1vxzYROZM/DUNF5OShZYOFa4HJIeM1bKR/7zkzv5Bd1VjrEk075SooIugJ2nv2MMMOcjFR6YQNEIWFP1PrMkcOpIkKvPXMRNF3aUEc90+7Gol3NQMSD6UdHyvdawNlFfvJfIoeO+zHoPgbVvjbRxKUf8PC2WqV27e96VsD8fJ/bm/5+pCPBFFiN0mN+IcZZ80xpYCtVPNPd3LWBn5wqYV5kFz1vL1soyI41lEjNYFCUXVzo0K6h/5N7VcSATDIT+3ad/nsb9J9BRBfWS2heQI9aW7FV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xqGPylHmULgQ4W5LsY6loIXxMZD66oD2yq1gJZL23VayTl+hzusVR+PWVDiTVgXRdwvBKb5rArPhvRlqlx6NX9mPsnmHnhVlWLqyjjCWHc0BdDB6yhPTjb1WFZXFaRRHPAxb5szv1b5094rxbkSovqDfVqw5Q==",
    "PUBLIC_KEY": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgnBhJ4JLT9StDSnJ1hC7pRnVHmbjL6a39L/6ae7avn/U4PpCQp9b8c2ETmTPw1DReTkoWWDhWuBySHjNWykf+85M7+QXdVY6xJNO+UqKCLoCdp79jDDDnIxUemEDRCFhT9T6zJHDqSJCrz1zETRd2lBHPdPuxqJdzUDEg+lHR8r3WsDZRX7yXyKHjvsx6D4G1b420cSlH/Dwtlqldu3velbA/Hyf25v+fqQjwRRYjdJjfiHGWfNMaWArVTzT3dy1gZ+cKmFeZBc9by9bKMiONZRIzWBQlF1c6NCuof+Te1XEgEwyE/t2nf57G/SfQUQX1ktoXkCPWluxVaAvnnnpdwIDAQAB"
}

WEPAY = {
    "APIV3_SECRET": "5b99b7536c04f31ea9d3296541776bfd",
    "API_SECRET": "5b99b7536c04f31ea9d3296541776bfd"
}

"""=================================此处导入配置================================="""
